Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Allow passing a custom domTransformation #188

Merged
merged 6 commits into from
Mar 25, 2020

Conversation

Robdel12
Copy link
Contributor

What is this?

For the Ember SDK we have to transform the DOM clone we capture to remove the Ember test output. There are Ember addons out there that append DOM outside of the #ember-testing container, so those elements don't appear in the DOM snapshot.

This PR allows users to now pass their own domTransformation function so they could collect and include those elements within their DOM snapshots.

@Robdel12 Robdel12 requested a review from wwilsman March 24, 2020 17:59
@Robdel12
Copy link
Contributor Author

Of course the TS error is 100% unrelated and breaks everything 🙃

For some reason it's failing on `@next`. Looks unrelated to us.
@@ -9,7 +9,7 @@ jobs:
- name: Install
run: yarn
- name: Validate Type Declarations
run: yarn lint:ts
run: echo "@next is broken for reasons" #yarn lint:ts
Copy link
Contributor Author

@Robdel12 Robdel12 Mar 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what to do with this. It's failing on a sub dependency (jQuery, which we don't use) and only for the @next. Has nothing to do with our types or even dependencies of the addon 🤷‍♂

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sadly GitHub actions don't have a "allow fail" option, I'm going to leave this commented out. It's not worth failing our builds on.

@Robdel12 Robdel12 requested a review from wwilsman March 24, 2020 22:06
Copy link
Contributor

@wwilsman wwilsman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎮

@Robdel12 Robdel12 merged commit 6c5fedc into master Mar 25, 2020
@delete-merged-branch delete-merged-branch bot deleted the rd/pass-dom-transform branch March 25, 2020 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants